package edu.nf.ch01;

import edu.nf.ch01.entity.User;
import edu.nf.ch01.service.UserService;

import java.util.List;

/**
 * @author CSY
 * @date 2025 - 04 - 22
 */
public class Main {
    public static void main(String[] args) {
        User user = new User();
        user.setId(2);
        user.setName("user3");
        user.setAge(20);
        UserService service = new UserService();
//        service.saveUser(user);

        /*service.updateUser(user);

        service.deleteUser(1);*/

        List<User> users = service.findAllUsers();
        for (User u : users) {
            System.out.println(u.toString());
        }
    }
}
